package com.example.coursehub.repository;

import com.example.coursehub.entity.Chapter;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Set;
import java.util.Optional;

public interface ChapterRepository extends JpaRepository<Chapter, String>, JpaSpecificationExecutor<Chapter> {
    List<Chapter> findByCourse_CourseId(String courseId);


//    Optional<Chapter> findByChapter_ChapterIdAndCourse_CourseId(String chapterId, String courseId);
}